<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>

<script>
    var array = [11,22,33,55];
    for (var i = 0; i<array.length;i++){
        console.log('arr=1111='+array[i])
    }
    for (var index in array){
        console.log('arr=2222='+array[index])
    }
    array.forEach(function (index, ele) {
        console.log('arr=3333='+ele)
        console.log('arr=3333='+index)
    })
    for(var index of array){
        console.log('arr=4444='+index)
    }
</script>
</html>